package com.mrd.gtimpframe.entity;

import java.io.Serializable;

public class TGenDeclaInspectRuleRe implements Serializable {
  private String id;

  private String ruleId1;


  private String ruleId2;

  private String combinationMethod;

  private String status;

  private String creator;

  private String createTime;

  private String policyRulesId;

  private static final long serialVersionUID = 1L;

  public TGenDeclaInspectRuleRe(String ruleId1, String ruleId2, String id, String combinationMethod,
      String status, String creator, String createTime) {
    this.id = id;
    this.combinationMethod = combinationMethod;
    this.status = status;
    this.creator = creator;
    this.createTime = createTime;
  }

  public TGenDeclaInspectRuleRe() {
    super();
  }

  public String getRuleId1() {
    return ruleId1;
  }

  public void setRuleId1(String ruleId1) {
    this.ruleId1 = ruleId1;
  }

  public String getRuleId2() {
    return ruleId2;
  }

  public void setRuleId2(String ruleId2) {
    this.ruleId2 = ruleId2;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id == null ? null : id.trim();
  }

  public String getCombinationMethod() {
    return combinationMethod;
  }

  public void setCombinationMethod(String combinationMethod) {
    this.combinationMethod = combinationMethod == null ? null : combinationMethod.trim();
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status == null ? null : status.trim();
  }

  public String getCreator() {
    return creator;
  }

  public void setCreator(String creator) {
    this.creator = creator == null ? null : creator.trim();
  }

  public String getCreateTime() {
    return createTime;
  }

  public void setCreateTime(String createTime) {
    this.createTime = createTime == null ? null : createTime.trim();
  }

  public String getPolicyRulesId() {
    return policyRulesId;
  }

  public void setPolicyRulesId(String policyRulesId) {
    this.policyRulesId = policyRulesId;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append(getClass().getSimpleName());
    sb.append(" [");
    sb.append("Hash = ").append(hashCode());
    sb.append(", id=").append(id);
    sb.append(", combinationMethod=").append(combinationMethod);
    sb.append(", status=").append(status);
    sb.append(", creator=").append(creator);
    sb.append(", createTime=").append(createTime);
    sb.append(", serialVersionUID=").append(serialVersionUID);
    sb.append("]");
    return sb.toString();
  }

  @Override
  public boolean equals(Object that) {
    if (this == that) {
      return true;
    }
    if (that == null) {
      return false;
    }
    if (getClass() != that.getClass()) {
      return false;
    }
    TGenDeclaInspectRuleRe other = (TGenDeclaInspectRuleRe) that;
    return (this.getRuleId1() == null ? other.getRuleId1() == null
        : this.getRuleId1().equals(other.getRuleId1()))
        && (this.getRuleId2() == null ? other.getRuleId2() == null
            : this.getRuleId2().equals(other.getRuleId2()))
        && (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
        && (this.getCombinationMethod() == null ? other.getCombinationMethod() == null
            : this.getCombinationMethod().equals(other.getCombinationMethod()))
        && (this.getStatus() == null ? other.getStatus() == null
            : this.getStatus().equals(other.getStatus()))
        && (this.getCreator() == null ? other.getCreator() == null
            : this.getCreator().equals(other.getCreator()))
        && (this.getCreateTime() == null ? other.getCreateTime() == null
            : this.getCreateTime().equals(other.getCreateTime()));
  }

  @Override
  public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ((getRuleId1() == null) ? 0 : getRuleId1().hashCode());
    result = prime * result + ((getRuleId2() == null) ? 0 : getRuleId2().hashCode());
    result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
    result =
        prime * result + ((getCombinationMethod() == null) ? 0 : getCombinationMethod().hashCode());
    result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
    result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
    result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
    return result;
  }
}
